package com.springcloud.auth.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.springcloud.commom.entity.BaseEntity;
import lombok.Data;
import org.apache.ibatis.annotations.Insert;

import javax.validation.constraints.NotBlank;
import java.util.Date;


/**
 * <p>
 *
 * </p>
 *
 * @author hzl
 * @since 2020-09-30
 */

@Data
@TableName("t_user_info")
public class TUserInfo extends BaseEntity {

    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private String id;
    /**
     * 用户名
     */
    @NotBlank(message = "用户名不能为空", groups = {Insert.class})
    private String userName;
    /**
     * 密码
     */
    @NotBlank(message = "密码不能为空", groups = {Insert.class})
    private String password;
    /**
     * 昵称
     */
    private String nick;
    /**
     * 性别
     */
    private Integer gender;
    /**
     * 电话
     */
    private String phone;
    /**
     * 头像url
     */
    private String headUrl;

    /**
     * 盐加密
     */
    private String salt;

    /**
     * 出生年月
     */
    private Date birthday;
}
